#ifndef MODEL_H
#define MODEL_H

#include <QMap>
#include <QString>
#include <QVector>
#include <QVariant>



//子弹的坐标
struct BulletPoint{
  double X,Y;
};

// TargetInfo  JsonConfig结构体
struct Rake{

  BulletPoint LeftDownPoint;
  BulletPoint RightUpPoint;
  BulletPoint ScaleFactor;
};

//发送信息格式
typedef struct Send_Info{
 int code;
 QMap<QString,QString> msg;
 QMap<QString,double> data;
}sendInfo;

struct TargetInfo{
  QMap<QString,Rake> RakesMap;
};

typedef struct OneTaregtBullet
{
  int addr;
  qreal x;
  qreal y;
  int cylinder_number;
  int direction;
}oneTaregtBullet;

typedef struct Target_Info_Table
{
  long long int Id;
  int addr;
  qreal x;
  qreal y;
  int SystemID;
  int cylinder_number;
  int direction;
  int group_number;
  long long int UserId;
  int IsDelete;
  QString user_name;
  QString CreateAt;
}targetInfoTable;
Q_DECLARE_METATYPE(Target_Info_Table);

//extern QQueue<QByteArray> d_queue;


#endif // MAINWINDOW_H
